home *** CD-ROM | disk | FTP | other *** search
/ CD ROM Paradise Collection 4 / CD ROM Paradise Collection 4 1995 Nov.iso / business / ebird10f.zip / INSTALL.BAT < prev    next >
DOS Batch File  |  1995-03-01  |  5KB  |  175 lines

  1. echo off
  2. cls
  3. echo ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
  4. echo ▌Early Bird Home/Business Reminder Program ▐
  5. echo ▌INSTALLATION                              ▐
  6. echo ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  7. if not exist install.bat goto baddir
  8. if not exist ebdoc.exe goto baddir
  9. if not exist eb.exe goto baddir
  10. if "%1"=="" goto nodrive
  11. for %%a in ("help" "HELP") do if "%1"==%%a goto help
  12. for %%a in (A B a b) do if "%1"=="%%a:" goto floppy
  13. for %%a in (C D E F G H I J K L M c d e f g h i j k l m) do if "%1"=="%%a:" goto hard
  14. echo  
  15. echo "%1" is an invalid drive designator.
  16. goto help
  17.  
  18. :floppy
  19. echo  
  20. echo ──── FLOPPY DRIVE Installation ────
  21. echo  
  22. echo The Early Bird Program files will be copied to floppy disk drive "%1".
  23. echo You must have a formatted floppy disk ready to continue.
  24. echo  
  25. ebdoc /PD
  26. echo  
  27. if errorlevel 88 goto end
  28.  
  29. cd %1\
  30. goto final
  31.  
  32. :hard
  33. if not "%2"=="" goto hardd
  34. echo  
  35. echo ──── HARD DISK Installation ────
  36. echo  
  37. echo Early Bird Program files will be copied to hard disk drive "%1" into
  38. echo the directory "%1\EB".
  39. echo  
  40. ebdoc /PD
  41. echo  
  42. if errorlevel 88 goto end
  43.  
  44. ctty nul
  45. mkdir %1\EB
  46. ctty con
  47. cd %1\EB
  48. goto final
  49.  
  50. :hardd
  51. echo  
  52. echo ──── HARD DISK (Specific Drive) Installation ────
  53. echo  
  54. echo Early Bird Program files will be copied to the hard disk drive
  55. echo directory "%1%2".
  56. echo  
  57. ebdoc /PD
  58. if errorlevel 88 goto end
  59.  
  60. ctty nul
  61. mkdir %1%2
  62. ctty con
  63. cd %1%2
  64.  
  65. :final
  66. if exist eb.exe goto ok
  67. echo Sorry, cannot install from a disk to itself. Just "copy" the files.
  68. goto end
  69.  
  70. :ok
  71. echo  
  72. if not exist %1eb.rem goto overwrite
  73. echo Warning, EB.REM already exists in %1%2.
  74. ebdoc /P "Do you wish to OVERWRITE it with the default sample EB.REM file? (Y/N): " YN
  75. echo  
  76. if not errorlevel 89 goto skipit
  77. :overwrite
  78. echo Copying EB.REM file to %1%2...
  79. copy EB.REM %1%2
  80.  
  81. :skipit
  82. echo  
  83. ebdoc /P "Enter \"A\" to copy All files or \"O\" to copy Only EB.EXE and EB.HLP: " AO
  84. echo  
  85. echo Copying files to %1%2...
  86. if errorlevel 79 goto only3
  87. for %%a in (INSTALL.BAT EB.EXE EB.HLP EB.CMP EBDOC.EXE) do copy %%a %1
  88. for %%a in (HOLIDAYS.REM GO.BAT GO.DOC README.DOC ORDER.DOC) do copy %%a %1
  89. for %%a in (CHANGES.DOC VENDOR.DOC CATALOG.TXT FILE_ID.DIZ) do copy %%a %1
  90. if not exist %1EB.EXE goto prob
  91. goto doneit
  92. :only3
  93. for %%a in (EB.EXE EB.HLP EBDOC.EXE) do copy %%a %1
  94. if not exist %1eb.exe goto prob
  95.  
  96. :doneit
  97. %1
  98. echo  
  99. ebdoc /P "Does your monitor display colors? (Y/N): " YN
  100. echo  
  101. if errorlevel 89 goto color
  102. ebdoc /P "Does your monochrome monitor display shades between black and white? (Y/N): " YN
  103. echo  
  104. if errorlevel 89 goto bw
  105. %1eb /LCD /STOREOPTIONS
  106. goto chkmouse
  107. :color
  108. %1eb /COLOR /STOREOPTIONS
  109. goto chkmouse
  110. :bw
  111. %1eb /BW /STOREOPTIONS
  112. :chkmouse
  113. echo  
  114. ebdoc /P "Do you have a mouse? (Y/N): " YN
  115. echo  
  116. if errorlevel 89 goto yesmouse
  117. %1eb /NOMOUSE /STOREOPTIONS
  118. goto complete
  119. :yesmouse
  120. %1eb /MOUSE /STOREOPTIONS
  121. :complete
  122. echo  
  123. echo Early Bird Program Installation is now complete to %1.
  124. echo  
  125. if not exist EB.CMP goto nodoc
  126. ebdoc /P "Press \"D\" to view or print documentation or \"C\" to continue: " DC
  127. echo  
  128. if errorlevel 68 ebdoc
  129. :nodoc
  130. echo  
  131. echo ──── INSTALLATION COMPLETE ────
  132. echo  
  133. echo Type "EB" and press Enter to enter the Early Bird Editor.
  134. echo Type "EB SCAN" and press Enter to scan reminders.
  135. echo Type "EB ?" and press Enter to get details on how to run the program.
  136. goto end
  137.  
  138. :prob
  139. echo  
  140. echo There was a problem copying to %1%2.  You may not have enough disk space
  141. echo on drive %1 or you may have specified an invalid drive to copy to.
  142. echo Please check the syntax from the following summary screen.
  143. goto help
  144.  
  145. :baddir
  146. echo  
  147. echo This installation program must be run from the current drive and
  148. echo directory.  Type the drive letter (A: or B: or C:, etc...) at the
  149. echo DOS prompt of the drive containing the installation program and
  150. echo press the Enter key.  Then re-run INSTALL.
  151. goto end
  152.  
  153. :nodrive
  154. echo  
  155. echo You must specify a drive (e.g. A:, C:,...) to copy the Early Bird files to.
  156.  
  157. :help
  158. echo  
  159. echo TO INSTALL TO A FLOPPY DRIVE:
  160. echo ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  161. echo Enter "INSTALL A:" or "INSTALL B:" at the DOS prompt and press the Enter key.
  162. echo NOTE: If you have only one floppy drive, A:, then use the command INSTALL B:
  163. echo and simply insert the proper disks into drive A: when DOS tells you to.
  164. echo  
  165. echo TO INSTALL TO A HARD DISK:
  166. echo ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  167. echo Enter "INSTALL" followed by the hard drive letter: (e.g.: C:,D:,...,M:) at
  168. echo the DOS prompt and press the Enter key.  (e.g: "INSTALL C:")  The files will
  169. echo be copied into the directory \EB on the selected hard disk.
  170. echo  
  171. echo To install to a directory other that \EB, enter a space after the drive
  172. echo letter followed by the directory name (e.g., "INSTALL C: \MYDIR").
  173. :end
  174. echo on
  175.